Array.new(10)-{-i-..-}-(Arr).sublime-snippet (357B)
1 <snippet> 2 <content><![CDATA[Array.new(${1:10}) { ${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:|)/}${2:i}${2/(^(?<var>\s*(?:\*|\*?[a-z_])[a-zA-Z0-9_]*\s*)(,\g<var>)*,?\s*$)|.*/(?1:| )/}$0 }]]></content> 3 <tabTrigger>Array</tabTrigger> 4 <scope>source.ruby</scope> 5 <description>Array.new(10) { |i| .. }</description> 6 </snippet>